home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / f90 / random_number.z / random_number
Encoding:
Text File  |  1998-10-30  |  1.7 KB  |  44 lines

  1. RANDOM_NUMBER(3I)                                      Last changed: 1-6-98
  2.  
  3.  
  4. NNAAMMEE
  5.      RRAANNDDOOMM__NNUUMMBBEERR - Returns pseudorandom numbers
  6.  
  7. SSYYNNOOPPSSIISS
  8.      CCAALLLL RRAANNDDOOMM__NNUUMMBBEERR (([HHAARRVVEESSTT==]_h_a_r_v_e_s_t)
  9.  
  10. IIMMPPLLEEMMEENNTTAATTIIOONN
  11.      UNICOS, UNICOS/mk, and IRIX systems
  12.  
  13. SSTTAANNDDAARRDDSS
  14.      Fortran 90
  15.  
  16. DDEESSCCRRIIPPTTIIOONN
  17.      The RRAANNDDOOMM__NNUUMMBBEERR intrinsic subroutine returns one pseudorandom number
  18.      or an array of pseudorandom numbers from the uniform distribution over
  19.      the range 0 <= _x < 1.  It accepts the following argument:
  20.  
  21.      _h_a_r_v_e_s_t   Must be of type real.  It is an output argument.  It may be
  22.                a scalar or an array variable.  It is set to contain
  23.                pseudorandom numbers from the uniform distribution in the
  24.                interval 0 <= _x < 1.
  25.  
  26.                On UNICOS and UNICOS/mk systems, _h_a_r_v_e_s_t is 64 bits.  On
  27.                IRIX systems, _h_a_r_v_e_s_t is 32 bits.
  28.  
  29.      The name of this intrinsic cannot be passed as an argument.
  30.  
  31. EEXXAAMMPPLLEESS
  32.           REAL  X,  Y(10,10)
  33.           ! Initialize X with a pseudorandom number
  34.           CALL RANDOM_NUMBER(HARVEST=X)
  35.           CALL RANDOM_NUMBER(Y)
  36.           ! X and Y contain uniformly distributed random numbers
  37.  
  38. SSEEEE AALLSSOO
  39.      RRAANNDDOOMM__SSEEEEDD(3I), RRAANNFF(3I)
  40.  
  41.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
  42.      printed version of this man page.
  43.  
  44.